projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8917361
)
(O_RDONLY): Defined.
author
Richard M. Stallman
<rms@gnu.org>
Tue, 23 Aug 1994 22:28:49 +0000
(22:28 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Tue, 23 Aug 1994 22:28:49 +0000
(22:28 +0000)
(openp): Use it.
src/lread.c
patch
|
blob
|
history
diff --git
a/src/lread.c
b/src/lread.c
index f720c76c45856203b1c0c1d3e4573731987873bf..e703337edc724d7ad9674d36c8fd8b9ae949f9e4 100644
(file)
--- a/
src/lread.c
+++ b/
src/lread.c
@@
-60,6
+60,10
@@
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <math.h>
#endif /* LISP_FLOAT_TYPE */
+#ifndef O_RDONLY
+#define O_RDONLY 0
+#endif
+
extern int errno;
Lisp_Object Qread_char, Qget_file_char, Qstandard_input, Qcurrent_load_list;
@@
-577,7
+581,7
@@
openp (path, str, suffix, storeptr, exec_only)
if (exec_only)
fd = (access (fn, X_OK) == 0) ? 1 : -1;
else
- fd = open (fn,
0
, 0);
+ fd = open (fn,
O_RDONLY
, 0);
if (fd >= 0)
{